package com.ternnetwork.wechat.service.impl.qy.agent;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ternnetwork.configuration.service.system.SystemParameterService;
import com.ternnetwork.wechat.service.qy.agent.WechatAgentService;
import com.ternnetwork.wechat.util.WechatQyAgentUtil;


@Service("wechatAgentService")
public class WechatAgentServiceImpl implements WechatAgentService{

	@Resource
	private SystemParameterService systemParameterService;
	
	
	public  String list(){
		String corpId=systemParameterService.getValueByKey("WECHAT_QY_CORP_ID");
		String corpSecret=systemParameterService.getValueByKey("WECHAT_QY_CORP_SECRET");
		return WechatQyAgentUtil.list(corpId, corpSecret);
	}
	
}
